home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / interp / perl-5.003.tar.gz / perl-5.003.tar / perl-5.003 / hints / netbsd.sh < prev    next >
Text File  |  1996-01-20  |  1KB  |  40 lines

  1. # hints/netbsd.sh
  2. #
  3. # talk to mrg@eterna.com.au if you want to change this file.
  4. #
  5. # netbsd keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
  6. # so Configure doesn't find them (unless you abandon the nm scan).
  7. # this should be *just* 0.9 below as netbsd 0.9a was the first to
  8. # introduce shared libraries.
  9. case "$osvers" in
  10. 0.9|0.8*)
  11.     usedl="$undef"
  12.     ;;
  13. *)    d_dlopen=$define
  14.     d_dlerror=$define
  15. # we use -fPIC here because -fpic is *NOT* enough for some of the
  16. # extensions like Tk on some netbsd platforms (the sparc is one)
  17.     cccdlflags="-DPIC -fPIC $cccdlflags"
  18.     lddlflags="-Bforcearchive -Bshareable $lddlflags"
  19. # netbsd has these but they don't really work as advertised.  if they
  20. # are defined, then there isn't a way to make perl call setuid() or
  21. # setgid().  if they aren't, then ($<, $>) = ($u, $u); will work (same
  22. # for $(/$)).  this is because you can not change the real userid of
  23. # a process under 4.4BSD.
  24.     d_setregid="$undef"
  25.     d_setreuid="$undef"
  26.     d_setrgid="$undef"
  27.     d_setruid="$undef"
  28.     ;;
  29. esac
  30.  
  31. # Avoid telldir prototype conflict in pp_sys.c  (NetBSD uses const DIR *)
  32. # Configure should test for this.  Volunteers?
  33. pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
  34.  
  35. case "$archname" in
  36. '')
  37.     archname=`uname -m`-${osname}
  38.     ;;
  39. esac
  40.